<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String userrand1 = "";
	if(request.getParameter("userrand")!=null){
		userrand1 = request.getParameter("userrand");
	}
	String randcode = "";
	if(session.getAttribute("randcode") != null) {
		randcode = (String) session.getAttribute("randcode");
	}
	if(userrand1.equals(randcode)){
		out.print(1);
	}else{
		out.print(0);
	}

%>